{template 'public/header'}
{template 'public/comhead'}
<link rel="stylesheet" type="text/css" href="../addons/zh_tcwq/template/public/ygcss.css">
<style type="text/css">
    .yginp{width: 50%;}
    .ygspan{line-height: 35px;margin-left: 10px;}
</style>
<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>
 <li ><a href="{php echo $this->createWebUrl('plan',array('type'=>all));}">认筹管理</a></li>
  <li class="active"><a href="{php echo $this->createWebUrl('addplan',array('type'=>all));}">添加认筹</a></li>
</ul>
<div class="main ygmain">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <!--<input type="hidden" name="parentid" value="{$parent['id']}" />-->
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                内容编辑
            </div>
            <div class="panel-body">
              <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">股票代码</label>
                    <div class="col-sm-5">
                        <input type="text" name="gid" class="form-control" value="{$info['gid']}" />

                            <span style="color:red">股票编号，上海股市以sh开头，深圳股市以sz开头</span>
                    </div>
                </div>   
                  <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">股票名称</label>
                    <div class="col-sm-5">
                        <input type="text" name="gp_name" class="form-control" value="{$info['gp_name']}" />
                    </div>
                </div>
                   <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">到期日</label>
                    <div class="col-sm-9">
                            <select name="dq_date" class="col-md-5">                           
                                <option value="1" {if $info['dq_date']==1} selected {/if}>一个月</option>
                                <option value="2" {if $info['dq_date']==2} selected {/if}>两个月</option>
                                <option value="3" {if $info['dq_date']==3} selected {/if}>三个月</option>
                                <option value="4" {if $info['dq_date']==4} selected {/if}>六个月</option>                               
                            </select>
                    </div>
                </div>
                  <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">期权费</label>
                    <div class="col-sm-8">
                        <input type="text" name="qq_cost" class="form-control yginp col-md-7" value="{$info['qq_cost']}" />
                        <span class="ygspan">%</span>
                    </div>
                </div>

                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">开始时间</label>
                    <div class="col-sm-10">
                    {php echo tpl_form_field_date(start_time, $info['start_time'],$withtime = true);}

                    </div>
                  </div> 
                   <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">结束时间</label>
                    <div class="col-sm-10">
                    {php echo tpl_form_field_date(end_time, $info['end_time'], $withtime = true);} 
                    </div>
                  </div>
                   <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">认筹时间</label>
                    <div class="col-sm-8">
                        <input type="text" name="days" class="form-control yginp col-md-7" value="{$info['days']}" />
                        <span class="ygspan">天</span>
                    </div>
                </div>
                     <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">认筹总额</label>
                    <div class="col-sm-8">
                        <input type="text" name="rc_total" class="form-control yginp col-md-7" value="{$info['rc_total']}" />
                        <span class="ygspan">万元</span>
                      
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">认筹份数</label>
                    <div class="col-sm-8">
                        <input type="text" name="rc_num" class="form-control yginp col-md-7" value="{$info['rc_num']}" />
                        <span class="ygspan">份</span>
                    </div>
                </div>
                 <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">认筹名义本金/份</label>
                    <div class="col-sm-8">
                        <input type="text" name="rcbj" class="form-control yginp col-md-7" value="{$info['rcbj']}" />
                        <span class="ygspan">万元</span>
                    </div>
                </div>
             <!--    <div class="form-group">
                 <label class="col-xs-12 col-sm-3 col-md-2 control-label">排序</label>
                 <div class="col-sm-8">
                     <input type="text" name="sort" class="form-control " value="{$info['sort']}" />
                      <span style="color:red">数字越小越靠前</span>
                 </div>
             </div> -->
              
            </div>

        </div>

        <div class="form-group">
            <input type="submit" name="submit" value="提交" class="btn col-lg-3" style="color: white;background-color: #44ABF7;"/>
            <input type="hidden" name="token" value="{$_W['token']}" />
            <input type="hidden" name="id" value="{$info['id']}" />
        </div>
    </form>
</div>
<script type="text/javascript">
    $(function(){
        $("#frame-1").show();
        $("#yframe-1").addClass("wyactive");
    })
</script>